package com.tansuo365.test1.service.otherservice.impl;

import com.tansuo365.test1.bean.otherbean.DProject;
import com.tansuo365.test1.mapper.othermapper.DProjectMapper;
import com.tansuo365.test1.service.otherservice.DProjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DProjectServiceImpl implements DProjectService {
    @Resource
    private DProjectMapper dProjectMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dProjectMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteBatchByPKArr(Integer[] ids) {
        return dProjectMapper.deleteBatchByPKArr(ids);
    }

    @Override
    public int deleteBatchByWidArr(Integer[] ids) {
        return dProjectMapper.deleteBatchByWidArr(ids);
    }

    @Override
    public int deleteByWid(int w_id) {
        return dProjectMapper.deleteByWid(w_id);
    }

    @Override
    public int insert(DProject dProject) {
        return dProjectMapper.insert(dProject);
    }

    @Override
    public int insertSelective(DProject dProject) {
        return dProjectMapper.insertSelective(dProject);
    }

    @Override
    public DProject selectByPrimaryKey(Integer id) {
        return dProjectMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<DProject> findByWaiId(int w_id) {
        return dProjectMapper.findByWaiId(w_id);
    }

    @Override
    public long getCountSelective(DProject dProject) {
        return dProjectMapper.getCountSelective(dProject);
    }

    @Override
    public List<DProject> findSelectiveByPage(DProject dProject) {
        return dProjectMapper.findSelectiveByPage(dProject);
    }

    @Override
    public int updateByPrimaryKeySelective(DProject dProject) {
        return dProjectMapper.updateByPrimaryKeySelective(dProject);
    }

    @Override
    public int updateByPrimaryKey(DProject dProject) {
        return dProjectMapper.updateByPrimaryKey(dProject);
    }
}
